<?php

declare(ENCODING = 'UTF-8');

/*                                                                        *
 * This script is part of the TYPO3 project - inspiring people to share!  *
 *                                                                        *
 * TYPO3 is free software; you can redistribute it and/or modify it under *
 * the terms of the GNU General Public License version 2 as published by  *
 * the Free Software Foundation.                                          *
 *                                                                        *
 * This script is distributed in the hope that it will be useful, but     *
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *	
 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General      *
 * Public License for more details.                                       *
 *                                                                        */	

/**
 * @package auxo
 * @subpackage Logging
 * @version $Id$
 */

/**	
 * The Log Appender Interface
 *	
 * This interface has to be coded if a class wants to log events 
 * using a certain output channel. 
 * 
 * @package auxo
 * @subpackage Logging
 * @version $Id$	
 * @copyright Copyright belongs to the respective authors
 * @author AHN
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License, version 2
 */
interface tx_auxo_LogAppenderInterface  {
	/**
	 * Defines a layout for this appender
	 *
	 * @param tx_auxo_LogLayoutInterface $layout
	 * @return void
	 */	
	public function setLayout(tx_auxo_LogLayoutInterface $layout);
	
	/**
	 * Appends an log events to this appender
	 *
	 * @param tx_auxo_LogEvent $event
	 * @return void
	 */	
	public function append(tx_auxo_LogEvent $event);
	
	/**
	 * Close this log appener
	 *
	 * @return void
	 */	
	public function close();
}
?>